package offer;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * @author cyt
 * @create 2020-05-20 11:23
 */
public class T17 {

    public static void main(String[] args) {
        int[] arr = {4, 5, 1, 6, 2, 7, 3, 8};



        ArrayList<Integer> list = new ArrayList<>();
/*        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();*/

        int k = 4;
        Arrays.sort(arr);

        for (int i = 0; i < k; i++) {
            list.add(arr[i]);
        }
    }
}
